package com.china.itapi.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Files entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "IT_FILES")
public class Files implements java.io.Serializable {
	
	/**  
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）  
	 *  
	 * @since 1.0.0  
	 */  
	
	private static final long serialVersionUID = 1459472820189297914L;
	// Fields
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "CID", unique = true, nullable = false, precision = 32, scale = 0)
	private Long cid;
	@Column(name = "NAME", nullable = false, length = 100)
	private String name;

	// Constructors

	/** default constructor */
	public Files() {
	}

	/** full constructor */
	public Files(String name) {
		this.name = name;
	}

	// Property accessors
	
	public Long getCid() {
		return this.cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}